// 批量导入账号的 Excel 模版
const importAccountTemplateUrl = './static/templete/account_template.xlsx';
// 批量导入分组的 Excel 模版
const importGroupTemplateUrl = 'https://zco-deployments.oss-cn-shanghai.aliyuncs.com/csl/group_template.xlsx';
// 批量导入知识库的 Excel 模版
const importKbTemplateUrl = './static/templete/知识库导入模板.xlsx';
const env = 'test';
/*后台访问地址*/
const loginUrl = `https://ivcs-${env}.zealcomm.cn`;

// 登录公钥
const publicKey = '030dfaba306b62b4dedc874aeb2714180155394043474889032faa64cd4e4bee08';

//当前管理员处于的网络是外网还是内网，创建token，静默观看
const DOMAIN = 'public'; //public,private

const pdfMaxSize = 1024 * 1024 * 60; // 60Mb

const videoMaxSize = 1024 * 1024 * 60; //60Mb

const excelMaxSize = 1024 * 1024 * 60; //60Mb

// 上传文件超时时间
const uploadFileTimeout = 60000 * 3; //3分钟

// 邀请访客链接地址
const customerUrl = `https://ivcs-${env}.zealcomm.cn/customer/#/start?inviteCode=`;
// 表单服务地址
const formUrl = `https://ivcs-${env}.zealcomm.cn/form/form-preview`;
// 文件上传
const uploadFileUrl = `${loginUrl}/ivcs/api/v1/upload`;
// 屏幕水印预览地址
const watermarkPreviewUrl = `${loginUrl}/admin`;

// 静态资源替换
const resourceOriginUrlDomain = 'ivcs-nginx';
const resourceReplaceUrlDomain = `ivcs-${env}.zealcomm.cn`;

// Countly key and Address
const countlyKey = '43a0d924a63f82cf4a40c8e11a8331925c467196';
const countlyAddress = 'https://countly.cosee.cc';

// 白板相关配置
const whiteboardInfo = {
	hostName: `https://ivcs-${env}.zealcomm.cn`, // 白板服务地址
	whiteboardPath: '/admin/static/whiteboard' // 白板服务地址path
};

// 当文件走aws存储的方式，需要配置如下地址，才能加载资源文件
// https://ivcs-${env}.zealcomm.cn/ivcs/api/v1/fileplay?fileKey=
const awsFileUrl = ``;

const logLevel = 1;
const defaultMediaOptions = {
	cameraStreamAudioConstraints: { deviceId: void 0, source: 'mic' },
	cameraStreamVideoConstraints: { deviceId: void 0, frameRate: 15, resolution: { width: 640, height: 480 }, source: 'camera' },
	cameraPublishOptions: {
		audio: [{ codec: { name: 'opus' } }],
		video: [
			{ codec: { name: 'h264' }, maxBitrate: 1024 },
			{ codec: { name: 'vp8' }, maxBitrate: 1024 }
		]
	},
	screenStreamAudioConstraints: { source: 'screen-cast' },
	screenStreamVideoConstraints: { frameRate: 15, resolution: { width: 1280, height: 720 }, source: 'screen-cast' },
	screenPublishOptions: {
		audio: [{ codec: { name: 'opus' }, maxBitrate: 64 }],
		video: [
			{ codec: { name: 'vp8' }, maxBitrate: 1024 },
			{ codec: { name: 'h264' }, maxBitrate: 1024 }
		]
	}
};
const maxUploadFileSize = 512e5;
